package com.example.myapplication;

import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.RecyclerView;

import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.GridView;
import android.widget.ListView;
import android.widget.Spinner;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        setContentView(R.layout.activity_main);

        //Spinner spinner = findViewById(R.id.spinner);
       // spinner.setAdapter(new MyAdapter(this));

        ListView listview = findViewById(R.id.listview);
        listview.setAdapter(new MyAdapter(this));

       // GridView gridView = findViewById(R.id.gridview);
       // gridView.setAdapter(new MyAdapter(this));




    }
}